class Car(object):
    def __init__(self, type, no):
        self.type = type
        self.no = no

    def start(self):
        print('我是车,我能启动')

    def stop(self):
        print('我是车,我可以停止')


class Taxi(Car):
    def __init__(self, type, no, company):
        super().__init__(type, no)
        self.company = company

    def start(self):
        print('乘客您好!')
        print(f'我是{self.company}出租车公司的,车牌号是{self.no},您要去哪里?')

    def stop(self):
        print('目的地到了,请您付款下车,欢迎下次乘坐')


class FamilyCar(Car):
    def __init__(self, type, no, name):
        super().__init__(type, no)
        self.name = name

    def start(self):
        print(f'我是{self.name},我的汽车我做主')

    def stop(self):
        print('目的地到了,我们去玩吧')


if __name__ == '__main__':
    taxi = Taxi('上海大众', '京A88888', '长城')
    taxi.start()
    taxi.stop()
    print('-------------------------------')
    family_car = FamilyCar('广汽丰田', '沪B88888', '武大郎')
    family_car.start()
    family_car.stop()